<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"> 
<h:head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
	<title>Cadastro de Cliente</title>
</h:head>
 
<h:body> 
	<h1>Cadastro de Cliente</h1><br/><br/>
	<h:form id="mainForm">
		<p:growl id="message" />
		<table>
			<tr>
				<td><h:outputText value="Nome: "/></td>
				<td><p:inputText value="#{clienteMB.cliente.nome}"/></td>
			</tr>
			<tr>
				<td><h:outputText value="Endereço: "/></td>
				<td><h:inputText value="#{clienteMB.cliente.endereco}"/></td>
			</tr>
			<tr>
				<td><h:outputText value="Telefone: "/></td>
				<td><h:inputText value="#{clienteMB.cliente.telefone}"/></td>
			</tr>
			<tr>
				<td><h:outputText value="Dependente: "/></td>
				<td><h:inputText value="#{clienteMB.depen.nome}"/></td>
			</tr>
			<tr>
				<td><p:commandButton action='#{clienteMB.cadastrarCliente("teste")}' value="Enviar" update="mainForm"/></td>
			</tr>
		</table>
	</h:form>
</h:body>
 
</html>
